home *** CD-ROM | disk | FTP | other *** search
Text File | 1998-03-12 | 1.7 KB | 65 lines | [TEXT/MPS ] |
- # Worksheet for OTGetDefaultEthernetAddress
-
- # Step 0 -- Get a copy of ETO 23 because this sample uses the tools on it.
-
- # Step 1 -- Set the directory to the one containing the sample.
-
- Directory 'Guy Smiley:Open Transport:Samples & Tests:OT Code Resource:'
-
- Directory `GetFileName -d`
-
- # Step 2 -- Set OTSDK to point to the OT SDK
-
- Set OTSDK "Stern:OT 1.3:Open Transport SDK:"
- Export OTSDK
-
- # Step 3 -- Set ASLMDevTools to point to the ASLM Developer Tools folder
-
- Set ASLMDevTools 'Guy Smiley:Open Transport:ASLM Dev Tools:'
- Export ASLMDevTools
-
- # Step 4 -- Run this script
-
- # Compile the code
-
- SC OTGetDefaultEthernetAddress.c ∂
- -model near ∂
- -proto strict ∂
- -i "{OTSDK}Open Tpt Client Developer:Includes:CIncludes:" ∂
- -i "{OTSDK}Open Tpt Protocol Developer:Includes:" ∂
- -i "{ASLMDevTools}"Interfaces:CIncludes:
-
- # Link it
-
- Link ∂
- OTGetDefaultEthernetAddress.c.o ∂
- -model near ∂
- -m MAIN # this is very necessary ∂
- -t rsrc -c RSED ∂
- -w # ignore headcrash ∂
- -rt XCMD=129 ∂
- -sg OTGetDefaultEthernetAddressSC ∂
- "{ASLMDevTools}"Libraries:SCLibraries:LibraryManager.n.o ∂
- "{OTSDK}Open Tpt Client Developer:68K Libraries:OpenTransportExtn.n.o" ∂
- "{OTSDK}Open Tpt Client Developer:68K Libraries:OpenTransport.n.o" ∂
- "{CLibraries}"StdCLib.o ∂
- "{Libraries}"IntEnv.o ∂
- "{Libraries}"Stubs.o ∂
- "{Libraries}"MacRuntime.o ∂
- "{Libraries}"Interface.o
-
- # Copy it into the stack
-
- begin
- echo include ∂"Link.out∂"∂;
- end | Rez -a -o OTGetDefaultEthernetAddr
-
- # Step 5 -- Compile "ApplParamsHack.c" into "ApplParamsHack.c.o".
- # "ApplParamsHack.c.o" is used by the Metrowerks version of this
- # sample. The sample already comes with a compiled version.
- # This step is only necessary if you want to rebuild it yourself.
-
- SC ApplParamsHack.c
-
- # End of Sheet
-